#include <stdio.h>
int main()
{
	int a,n,arr[500],sum,N,number;
	sum=0;
	N=0;
	for(n=0;n<500;n++)
	{
		arr[n]=getchar();
		if (arr[n]=='\n')
		break;
	}
	for(a=0;a<500;a++)
	{
		if	(arr[a]!=' ' && arr[a]!='\n')
		{
			sum=sum+arr[a]-48;
			N+=1;
				if (arr[a+1]==' ' ||arr[a+1]=='\n')
				{
					number=sum/N;
					if (number==1)
					{
						switch(N)
						{
							case 1:printf("1");break;
							case 2:printf(",");break;
							case 3:printf(".");break;
							case 4:printf("?");break;
							case 5:printf("!");break;
						}
					}
					else if	(number==2)
					{
						switch(N)
						{
							case 1:printf("2");break;
							case 2:printf("A");break;
							case 3:printf("B");break;
							case 4:printf("C");break;
						}
					}
					else if	(number==3)
					{
						switch(N)
						{
							case 1:printf("3");break;
							case 2:printf("D");break;
							case 3:printf("E");break;
							case 4:printf("F");break;
						}
					}
					else if	(number==4)
					{
						switch(N)
						{
							case 1:printf("4");break;
							case 2:printf("G");break;
							case 3:printf("H");break;
							case 4:printf("I");break;
						}
					}
					else if	(number==5)
					{
						switch(N)
						{
							case 1:printf("5");break;
							case 2:printf("J");break;
							case 3:printf("K");break;
							case 4:printf("L");break;
						}
					}
					else if	(number==6)
					{
						switch(N)
						{
							case 1:printf("6");break;
							case 2:printf("M");break;
							case 3:printf("N");break;
							case 4:printf("O");break;
						}
					}
					else if	(number==7)
					{
						switch(N)
						{
							case 1:printf("7");break;
							case 2:printf("P");break;
							case 3:printf("Q");break;
							case 4:printf("R");break;
							case 5:printf("S");break;
						}
					}
					else if	(number==8)
					{
						switch(N)
						{
							case 1:printf("8");break;
							case 2:printf("T");break;
							case 3:printf("U");break;
							case 4:printf("V");break;
						}
					}
					else if	(number==9)
					{
						switch(N)
						{
							case 1:printf("9");break;
							case 2:printf("W");break;
							case 3:printf("X");break;
							case 4:printf("Y");break;
							case 5:printf("Z");break;
						}
					}
					else
					{
						switch(N)
						{
							case 1:printf("0");break;
							case 2:printf(" ");break;
						}
					}
				}
		}
		else if (arr[a]==' ')
		{
		sum=0;
		N=0;
		continue;
		}
		else
		break;
	}
	return 0;
}
